import java.awt.Color;
import javax.swing.*;

public class FileExitCommand extends JMenuItem implements Command {
	private static final long serialVersionUID = 1L;
	private JPanel panel;
    
    public FileExitCommand(JPanel panel){
        this.panel = panel;
    }

    public void execute(){
        this.panel.setBackground(Color.WHITE);
        System.exit(0);
    }

}
